package com.dmwork.service.customer.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dmwork.service.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Value;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 李天
 * @since 2021-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("dm_customer")
@ApiModel(value="Customer对象", description="用户表")
public class Customer extends BaseEntity {

    private static final long serialVersionUID=1L;

    public static final String DEFAULT_AVATAR = "https://guli-file-tianlee.oss-cn-guangzhou.aliyuncs.com/avatar/default/default.jpg";

    public static final String DEFAULT_SIGN = "这个人什么都没有写  ~(￣o￣ ~) ";

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "用户电话号码")
    private String mobile;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "用户头像地址")
    private String avatar;

    @ApiModelProperty(value = "用户自定义主题颜色")
    private String color;

    @ApiModelProperty(value = "用户自定义字体颜色")
    private String textColor;

    @ApiModelProperty(value = "用户自定义背景图片")
    @Value("${default.background}")
    private String background;

    @ApiModelProperty(value = "性别【0>男，1>女】")
    private Integer sex;

    @ApiModelProperty(value = "个性签名")
    private String sign;

    @ApiModelProperty(value = "用户状态【0->正常, 1->禁用】")
    private Integer status;

    @ApiModelProperty(value = "是否删除（0为未删除，1为已删除）")
    @TableField("is_deleted")
    @TableLogic
    private Integer deleted;


}
